package com.nacos.nacos.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 测试用.test是否可以取到配置的值，结果是取不到，必须用getX方法
 *
 * @author wrb
 * @date 2020/4/8 17:18
 */
@Component
@RefreshScope
public class Test {

	@Value(value = "${test}")
	public String test;

	public String getTest() {
		return test;
	}
}
